package BookStore.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class VDbUtil {
    private static String url = "jdbc:oracle:thin:@localhost:1521:XE";
    private static String userName = "new";
    private static String userPwd = "126875";
    private static Connection con_2;

    public static Connection getCon_2() throws Exception {
        con_2 = DriverManager.getConnection(url, userName, userPwd);
        return con_2;
    }

    public static void closeCon_2() throws Exception {
        if (con_2 != null) {
            con_2.close();
        }
    }

}

